package com.tvunetworks.device.extra.service.feign;

import com.tvunetworks.center.common.feign.share.ShareFeignInterface;
import com.tvunetworks.center.common.util.Result;
import com.tvunetworks.device.extra.model.LiveRecordDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author andy
 * @since 2022/5/9
 **/
@FeignClient("${share.service.name:tvucc-share}")
public interface ShareFeignService extends ShareFeignInterface {
    /**
     * 获取正在推流列表
     * @param rid rid
     * @return list
     */
    @GetMapping("currentRLiveList")
    Result<List<LiveRecordDto>> currentRLiveList(@RequestParam("rid") String rid);
}
